package com.ws.entity;

import lombok.Data;

/**
 * @author 王硕
 * @version jdk21
 * @className Car
 * @description
 * @date 2024/11/7 21:51
 */
@Data
public class Car {
    private String color;
    private String name;
    private int wheelCount;

    public Car(String color, String name, int wheelCount) {
        this.color = color;
        this.name = name;
        this.wheelCount = wheelCount;
    }

    // 跑的功能
    public void run() {
        System.out.println(name + "正在跑");
    }
}
